package com.example.dmdomain.entity;

import com.example.dmcommom.Enum.ElectricityCategoryEnum;
import io.swagger.models.auth.In;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Embeddable;
import java.io.Serializable;

@Data
@Embeddable
public class ElectricityPriceKey implements Serializable {

	/**
	 * 省
	 */
	@Column(name = "province")
	private String province;

	/**
	 * 市
	 */
	@Column(name = "city")
	private String city;

	/**
	 * 用电类型：两部制、单一制
	 */
	@Column(name = "electricity_category")
	private ElectricityCategoryEnum electricityCategory;

	/**
	 * 用电类型2：工商业、大工业
	 */
	@Column(name = "type")
	private String type;

	/**
	 * 电压
	 */
	@Column(name = "voltage")
	private String voltage;

	/**
	 * 用电量
	 */
	@Column(name = "consumption")
	private String consumption;

	/**
	 * 年
	 */
	@Column(name = "year")
	private Integer year;

	/**
	 * 月
	 */
	@Column(name = "month")
	private Integer month;
}
